home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / callback.001 / callback~ / callback / cb / disable.c < prev    next >
C/C++ Source or Header  |  1996-07-28  |  396b  |  23 lines

  1.  
  2. #include "cb.h"
  3.  
  4. void disable()
  5. {
  6.     char
  7.         *line;
  8.  
  9.     while ((line = get_active_tty()))
  10.     {
  11.         char
  12.             *dis;
  13.             
  14.         assign_filenames(line);                  
  15.         dis = getfile(the_disablefile);
  16.         fclose(xfopen(dis, "w"));
  17.         log(log_on, "Disable %s by creating %s", line, dis);
  18.  
  19.     unlink(getfile(the_statefile));
  20.     }
  21.     modem_respawn();
  22. }
  23.